package com.greenold.quartz.task;

import com.greenold.common.utils.spring.SpringUtils;
import com.greenold.common.IBillServiceQuartz;
import org.springframework.stereotype.Component;

@Component("billTask")
public class BillTask {

    public void autoGenerateMonthlyBills() {
        IBillServiceQuartz billService = SpringUtils.getBean(IBillServiceQuartz.class);
        billService.autoGenerateMonthlyBills();
        System.out.println("✅ 自动生成上月账单成功");
    }
}
